package com.fulihui.usercore.core.repository;

import com.fulihui.usercore.condition.CooperationInfoCondition;
import com.fulihui.usercore.dto.CooperationInfoDTO;
import com.fulihui.usercore.request.merchant.CooperationInfoSaveRequest;

import java.util.List;

/**
 * @author Willard.Hu on 2016/9/25.
 */
public interface CooperationInfoRepository {

    int insert(CooperationInfoSaveRequest request);

    boolean update(CooperationInfoSaveRequest request);

    boolean delete(int id);

    CooperationInfoDTO queryByPK(int id);

    List<CooperationInfoDTO> query(CooperationInfoCondition condition);

}
